package com.primaryedu.ui.app.growstep;

import com.primaryedu.R;

import android.app.Activity;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

public class GrowStepAdapter extends BaseAdapter {

    private LayoutInflater inflater;
    @SuppressWarnings("unused")
    private Context context;

    public GrowStepAdapter(Activity context) {
        this.context = context;
        this.inflater = LayoutInflater.from(context);
    }

    @Override
    public int getCount() {
        return 12;
    }

    @Override
    public Object getItem(int position) {
        return position;
    }

    @Override
    public long getItemId(int position) {
        return position;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        if (null == convertView) {
            convertView = inflater.inflate(R.layout.item_grow_step, null);
        }


        return convertView;
    }

}
